//
//  UserInfoImgView.m
//  联付商圈
//
//  Created by apple on 2017/10/31.
//  Copyright © 2017年 lianfu. All rights reserved.
//

#import "UserInfoImgView.h"

@implementation UserInfoImgView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [UIImage imageNamed:@"userInfo@2x"];
        self.userInteractionEnabled = YES;
        
        self.topView = [[UserInfoView alloc] initWithFrame:CGRectMake(23 * FONTSIZE, 0, frame.size.width - 42 * FONTSIZE, frame.size.height / 3)];
        [self addSubview:_topView];
        
        self.midView = [[UserInfoView alloc] initWithFrame:CGRectMake(23 * FONTSIZE, _topView.frame.size.height - 2 * FONTSIZE, _topView.frame.size.width, _topView.frame.size.height)];
        [self addSubview:_midView];
        
        self.bottomView = [[UserInfoView alloc] initWithFrame:CGRectMake(23 * FONTSIZE, _midView.frame.origin.y + _midView.frame.size.height - 5 * FONTSIZE, _midView.frame.size.width, _midView.frame.size.height)];
        [self addSubview:_bottomView];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
